// UseGtest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <gtest/gtest.h>


void Factorial(int n, int & result )
{
	result = 1;
	for (int i = 1; i <= n; i++)
		result *= i;
}

TEST(FactorialTest , Mytest )
{
	int result = 0;
	Factorial(5, result);
	EXPECT_EQ(120, result);
}

int _tmain(int argc, _TCHAR* argv[])
{
	::testing::InitGoogleTest(&argc, argv);
	RUN_ALL_TESTS();
	return 0;
}

